<!DOCTYPE html>
<extend name="Base:base"/>
<block name="title">
    <title>找回密码</title>
<import type='css' file='Css.getPassword'/>
<import type='js' src="__PUBLIC__/Js/global.js"/>
</block>
<block name="content">
<div class="pwd-mainBox" style="background: url(__PUBLIC__/img/compleInf.png)">
	<div class="pwdmain">
	<form action="main.html" id="getpwd" name="getpwd" method="post">
	<div class="pwdForm">
			<ul>
			<li>
				<span>你的手机号：</span>
				<input type="text"class="myInput"name="username" id="username">
			</li>	
			<li>
				<span>填写验证码：</span>
				<input type="text"class="myInput"name="identity" id="identity">
				<a class="yzm">获取验证码</a>
			</li>
			<li>
				<span>填写新密码：</span>
				<input type="password"class="myInput"name="fristpassword" id="fristpassword">
			</li>
			<li>
				<span>确认新密码：</span>
				<input type="password"class="myInput"name="secondpassword" id="secondpassword">
			</li>
			<li>
				<a href="javascript:" class="getbtn" onclick="proof()">确认完成</a>
			</li>
	
		</div>
	</div>
	</form>
	</div>
</div>
<script type="text/javascript">
	function proof(){
		var username=document.getElementById("username").value
        var identity=document.getElementById("identity").value;
        var pwd1 = document.getElementById("fristpassword").value;
		var pwd2 = document.getElementById("secondpassword").value;
		if(pwd1!=pwd2){
			alert("两次密码输入不一致");
		}
        else if(username!=""&&identity!=""&&pwd1!=""&&pwd2!=""){
            document.getElementById("getpwd").submit();
        }
        else{
            alert("请填写完整")
        }
	}
</script>
</block>
